/**
 * Copyright &copy; 2012-2014 <a href="https://github.com.jims.base">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.patient.health.service;


import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.patient.health.dao.TraumaRecordDao;
import com.jims.master.modules.patient.health.entity.TraumaRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 外伤表Service
 * @author xueyx
 * @version 2017-07-20
 */
@Service
@Transactional(readOnly = true)
public class TraumaRecordService extends CrudService<TraumaRecordDao, TraumaRecord> {
	@Autowired
	TraumaRecordDao traumaRecordDao;

	@Override
    public List<TraumaRecord> findList(TraumaRecord TraumaRecord) {
		return super.findList(TraumaRecord);
	}
	
	@Override
    public Page<TraumaRecord> findPage(Page<TraumaRecord> page, TraumaRecord TraumaRecord) {
		return super.findPage(page, TraumaRecord);
	}

	public List<TraumaRecord> findByBaseId(String baseInfo){
		return traumaRecordDao.findByBaseId(baseInfo);
	}

}